//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import java.util.LinkedHashMap;

public class WareHouse {
  private static String Tool1;
  private static String Tool2;
  private static String Tool3;
  private static LinkedHashMap<Integer, Integer> levels;

  public WareHouse() {
  }

  public static void set(LinkedHashMap<Integer, Integer> wl, String t1, String t2, String t3) {
    levels = wl;
    Tool1 = t1;
    Tool2 = t2;
    Tool3 = t3;
  }

  public static int getMaxForLevel(int level) {
    Integer maxo = (Integer)levels.get(Integer.valueOf(level));
    return maxo == null?-1:maxo.intValue();
  }

  public static String getTool1() {
    return Tool1;
  }

  public static String getTool2() {
    return Tool2;
  }

  public static String getTool3() {
    return Tool3;
  }

  public static boolean isUsableTool(String name) {
    return name != null && name.length() != 0?(Tool1.equals(name)?true:(Tool2.equals(name)?true:Tool3.equals(name))):false;
  }
}
